package ycl.base.common.constants;

/**
 * redis常量参数
 *
 * @author: YCL
 * @date: 2021-06-04 16:12:10
 */
public final class RedisConstant {

	//用户登录
	public final static String USER_LOGIN = "user:login:LOGIN_";
	//用户注册
	public final static String USER_REGISTER = "user:register:USER_REGISTER_";
	//用户上锁, 无法登录
	public final static String USER_LOGIN_LOCK = "user:login:lock:LOCK_";
	//用户登录失败
	public final static String USER_LOGIN_FAIL = "user:login:fail:FAIL_";
	//登录失败次数
	public final static int LOGIN_FAIL_COUNT = 5;
	//有效时间
	public final static long LOGIN_EFFECTIVE_TIME = 30;


	//用户手机号登录
	public final static String SMS_USER_LOGIN = "SMS_USER_LOGIN_";
	//禁止使用
	public final static String DISABLE = "user:DISABLE_";
}
